import { defHttp as request } from '/@/utils/http/axios';

export const getAllUnApprovalUsersReq = (p) => {
    return request.post({
        url: `/core/user/queryApprovalPendUser`,
        data: p,
    });   
}

export const refuseUserApprovalReq = (p) => {
    return request.post({
        url: `/core/user/modifyUserNotPass`,
        data: p,
    });   
}
export const passUserApprovalReq = (p) => {
    return request.post({
        url: `/core/user/batchModifyUserPass`,
        data: p,
    });   
}

export const getAllPassedUsersReq = (p) => {
    return request.post({
        url: `/core/user/queryEffectUser`,
        data: p,
    });   
}
export const getAllRefusedUsersReq = (p) => {
    return request.post({
        url: `/core/user/queryNotEffectUser`,
        data: p,
    });   
}
export const updateUserBindAppReq = (p) => {
    return request.post({
        url: `/core/clientGrant/modifyControllableClients`,
        data: p,
    });   
}